/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * LopJInternalFrame.java
 *
 * Created on Jul 21, 2010, 11:16:48 AM
 */
package GUI;

import BUS.LopBUS;
import BUS.NamHocBUS;
import POJO.LopPOJO;
import POJO.NamHocPOJO;
import java.util.ArrayList;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;

/**
 *
 * @author MinhHieu
 */
public class LopInternalFrame extends javax.swing.JInternalFrame {

    private boolean TrangThai;

    public void LoadDuLieu() {
        try {
            ArrayList<LopPOJO> hs = LopBUS.laylop();
            DefaultTableModel dt = new DefaultTableModel() {
                @Override
                // khong co edit table
                public boolean isCellEditable(int row, int column) {
                    return false;
                }
            };
            dt.addColumn("STT");
            dt.addColumn("Mã lớp");
            dt.addColumn("Khối");
            dt.addColumn("Mã năm học");
            // doc du lieu
            dt.setRowCount(hs.size());
            for (int i = 0; i < hs.size(); i++) {
                dt.setValueAt(i + 1, i, 0);
                dt.setValueAt(hs.get(i).getMaLop(), i, 1);
                dt.setValueAt(hs.get(i).getKhoi(), i, 2);
                dt.setValueAt(hs.get(i).getMaNamHoc(), i, 3);
            }
            //gan mode cho table
            this.jTDanhSach.setModel(dt);
            this.jTDanhSach.changeSelection(0, 0, false, false);
            this.jLThongTin.setText("Lớp đang được chọn");
            this.setInfo();
        } catch (Exception ex) {
            JOptionPane.showMessageDialog(this, ex.getMessage());
        }
    }

    public void setInfo() {
        int row = this.jTDanhSach.getSelectedRow();
        if(row>=0){
            this.jTFMaLop.setText(this.jTDanhSach.getValueAt(row, 1).toString());
            this.jTFKhoi.setText(this.jTDanhSach.getValueAt(row, 2).toString());
            this.jCBMaNamHoc.setSelectedItem(this.jTDanhSach.getValueAt(row, 3).toString());
        }
    }

    public void setButtonOff() {
        this.jBLuu.setEnabled(true);
        this.jBHuyBo.setEnabled(true);
        this.jBThem.setEnabled(false);
        this.jBXoa.setEnabled(false);
        
    }

    public void setButtonOn() {
        this.jBLuu.setEnabled(false);
        this.jBHuyBo.setEnabled(false);
        this.jBThem.setEnabled(true);
        this.jBXoa.setEnabled(true);
  
    }

    /** Creates new form LopJInternalFrame */
    public LopInternalFrame() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPThongTin = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        jTFMaLop = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        jTFKhoi = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        jCBMaNamHoc = new javax.swing.JComboBox();
        jBLuu = new javax.swing.JButton();
        jBHuyBo = new javax.swing.JButton();
        jLThongTin = new javax.swing.JLabel();
        jPDanhSach = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTDanhSach = new javax.swing.JTable();
        jBThem = new javax.swing.JButton();
        jBXoa = new javax.swing.JButton();
        jBThoat = new javax.swing.JButton();
        jLamMoi = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();

        setClosable(true);
        setIconifiable(true);
        setTitle("Quản lý học sinh - Danh sách lớp");
        addInternalFrameListener(new javax.swing.event.InternalFrameListener() {
            public void internalFrameActivated(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameClosing(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameIconified(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameOpened(javax.swing.event.InternalFrameEvent evt) {
                formInternalFrameOpened(evt);
            }
        });
        addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                formKeyReleased(evt);
            }
        });

        jPThongTin.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Thông tin:", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 0, 255))); // NOI18N

        jLabel2.setText("Mã lớp:");

        jTFMaLop.setEnabled(false);

        jLabel3.setText("Khối:");

        jTFKhoi.setEnabled(false);

        jLabel5.setText("Mã năm học:");

        jCBMaNamHoc.setEnabled(false);

        jBLuu.setText("Lưu");
        jBLuu.setEnabled(false);
        jBLuu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBLuuActionPerformed(evt);
            }
        });

        jBHuyBo.setText("Hủy bỏ");
        jBHuyBo.setEnabled(false);
        jBHuyBo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBHuyBoActionPerformed(evt);
            }
        });

        jLThongTin.setText("Lớp đang được chọn");

        javax.swing.GroupLayout jPThongTinLayout = new javax.swing.GroupLayout(jPThongTin);
        jPThongTin.setLayout(jPThongTinLayout);
        jPThongTinLayout.setHorizontalGroup(
            jPThongTinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPThongTinLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPThongTinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPThongTinLayout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addGroup(jPThongTinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel2))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPThongTinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jTFKhoi)
                            .addComponent(jTFMaLop, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addComponent(jLabel5)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jCBMaNamHoc, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(28, 28, 28)
                        .addGroup(jPThongTinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jBHuyBo, javax.swing.GroupLayout.DEFAULT_SIZE, 96, Short.MAX_VALUE)
                            .addComponent(jBLuu, javax.swing.GroupLayout.DEFAULT_SIZE, 96, Short.MAX_VALUE)))
                    .addComponent(jLThongTin))
                .addContainerGap())
        );
        jPThongTinLayout.setVerticalGroup(
            jPThongTinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPThongTinLayout.createSequentialGroup()
                .addComponent(jLThongTin)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPThongTinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPThongTinLayout.createSequentialGroup()
                        .addGroup(jPThongTinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2)
                            .addComponent(jTFMaLop, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel5)
                            .addComponent(jCBMaNamHoc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPThongTinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3)
                            .addComponent(jTFKhoi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPThongTinLayout.createSequentialGroup()
                        .addComponent(jBLuu)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jBHuyBo)))
                .addContainerGap())
        );

        jPDanhSach.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Danh sách", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 0, 255))); // NOI18N

        jTDanhSach.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {},
                {},
                {},
                {}
            },
            new String [] {

            }
        ));
        jTDanhSach.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTDanhSachMouseClicked(evt);
            }
        });
        jTDanhSach.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                jTDanhSachKeyReleased(evt);
            }
        });
        jScrollPane1.setViewportView(jTDanhSach);

        javax.swing.GroupLayout jPDanhSachLayout = new javax.swing.GroupLayout(jPDanhSach);
        jPDanhSach.setLayout(jPDanhSachLayout);
        jPDanhSachLayout.setHorizontalGroup(
            jPDanhSachLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPDanhSachLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 386, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPDanhSachLayout.setVerticalGroup(
            jPDanhSachLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPDanhSachLayout.createSequentialGroup()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 254, Short.MAX_VALUE)
                .addContainerGap())
        );

        jBThem.setText("Thêm");
        jBThem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBThemActionPerformed(evt);
            }
        });

        jBXoa.setText("Xóa");
        jBXoa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBXoaActionPerformed(evt);
            }
        });

        jBThoat.setText("Thoát");
        jBThoat.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBThoatActionPerformed(evt);
            }
        });

        jLamMoi.setText("Làm mới");
        jLamMoi.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jLamMoiActionPerformed(evt);
            }
        });

        jLabel1.setFont(new java.awt.Font("Times New Roman", 1, 24));
        jLabel1.setForeground(new java.awt.Color(0, 102, 255));
        jLabel1.setText("Danh sách lớp học");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jPDanhSach, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jLamMoi, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jBXoa, javax.swing.GroupLayout.DEFAULT_SIZE, 112, Short.MAX_VALUE)
                                    .addComponent(jBThem, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jBThoat, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addComponent(jPThongTin, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 536, Short.MAX_VALUE))
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addGap(183, 183, 183))))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(1, 1, 1)
                .addComponent(jPThongTin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(29, 29, 29)
                        .addComponent(jBThem)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jBXoa)
                        .addGap(131, 131, 131)
                        .addComponent(jLamMoi)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jBThoat))
                    .addGroup(layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPDanhSach, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(35, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jBLuuActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBLuuActionPerformed
        // TODO add your handling code here:     
        boolean kq = false;
        if (this.TrangThai) {
            if (this.jTFMaLop.getText().isEmpty() || this.jTFMaLop.getText().isEmpty()) {
                JOptionPane.showMessageDialog(this, "Không được để trống!");
            } else {
                kq = LopBUS.themLop(this.jTFMaLop.getText(), this.jTFKhoi.getText(), this.jCBMaNamHoc.getSelectedItem().toString());
                if (kq) {
                    JOptionPane.showMessageDialog(this, "Thêm thành công.");
                } else {
                    JOptionPane.showMessageDialog(this, "Thêm thất bại");
                }
                this.setButtonOn();
                this.jTFMaLop.setEnabled(false);
                this.jTFKhoi.setEnabled(false);
                this.jCBMaNamHoc.setEnabled(false);
                this.LoadDuLieu();
            }
        } else {
            if ((this.jTFKhoi.getText().compareTo(this.jTDanhSach.getValueAt(this.jTDanhSach.getSelectedRow(), 3).toString()) == 0)
                    && (this.jCBMaNamHoc.getSelectedItem().toString().compareTo(this.jTDanhSach.getValueAt(this.jTDanhSach.getSelectedRow(), 4).toString()) == 0)) {
                JOptionPane.showMessageDialog(this, "Không có sự thay đổi!");
            } else {
                kq = LopBUS.suaLop(this.jTFMaLop.getText(), this.jTFKhoi.getText(), this.jCBMaNamHoc.getSelectedItem().toString());
                if (kq) {
                    JOptionPane.showMessageDialog(this, "Cập nhật thành công");
                } else {
                    JOptionPane.showMessageDialog(this, "Cập nhật thất bại");
                }
                this.setButtonOn();
                this.jTFMaLop.setEnabled(false);
                this.jTFKhoi.setEnabled(false);
                this.jCBMaNamHoc.setEnabled(false);
                this.LoadDuLieu();
            }
        }

    }//GEN-LAST:event_jBLuuActionPerformed

    private void formInternalFrameOpened(javax.swing.event.InternalFrameEvent evt) {//GEN-FIRST:event_formInternalFrameOpened
        // TODO add your handling code here:
        try {
            ArrayList<NamHocPOJO> list = NamHocBUS.selectAll();
            DefaultComboBoxModel dcb = new DefaultComboBoxModel();
            int size = list.size();
            for (int i = 0; i<size; i++) {
                dcb.addElement(list.get(i).getMaNamHoc());
            }
            this.jCBMaNamHoc.setModel(dcb);
        } catch (Exception ex) {
            JOptionPane.showMessageDialog(this, ex.getMessage());
        }
        this.LoadDuLieu();
    }//GEN-LAST:event_formInternalFrameOpened

    private void jBXoaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBXoaActionPerformed
        // TODO add your handling code here:

        int xacnhan = JOptionPane.showConfirmDialog(this, "Bạn thực sự muốn xóa lớp '" + this.jTFMaLop.getText() + "'?", "Xác nhận", JOptionPane.YES_NO_OPTION);
        if (xacnhan == 0) {
            boolean kq = LopBUS.xoaLop(this.jTFMaLop.getText(),this.jCBMaNamHoc.getSelectedItem().toString());
            if (kq == false) {
                JOptionPane.showMessageDialog(this, "Xóa thất bại");
            }
            this.LoadDuLieu();
        }
    }//GEN-LAST:event_jBXoaActionPerformed

    private void jLamMoiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jLamMoiActionPerformed
        // TODO add your handling code here:
        this.LoadDuLieu();
    }//GEN-LAST:event_jLamMoiActionPerformed

    private void jBThemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBThemActionPerformed
        // TODO add your handling code here:
        this.jLThongTin.setText("Thêm mới lớp");
        this.jTFMaLop.setEnabled(true);
        this.jTFMaLop.setText(null);
        this.jTFKhoi.setEnabled(true);
        this.jTFKhoi.setText(null);
        this.jCBMaNamHoc.setEnabled(true);
        this.jTFMaLop.requestFocus();

        this.setButtonOff();

        this.TrangThai = true;
    }//GEN-LAST:event_jBThemActionPerformed

    private void jTDanhSachMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTDanhSachMouseClicked
        // TODO add your handling code here:
        this.setInfo();
    }//GEN-LAST:event_jTDanhSachMouseClicked

    private void jTDanhSachKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTDanhSachKeyReleased
        // TODO add your handling code here:
        if (evt.getKeyCode() == 38 || evt.getKeyCode() == 40) {
            this.setInfo();
        }
        if (evt.getKeyCode() == 127) {
            this.jBXoaActionPerformed(null);
        }
    }//GEN-LAST:event_jTDanhSachKeyReleased

    private void jBHuyBoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBHuyBoActionPerformed
        // TODO add your handling code here:
        this.setButtonOn();
        this.jTFMaLop.setEnabled(false);
        this.jTFKhoi.setEnabled(false);
        this.jCBMaNamHoc.setEnabled(false);
        this.LoadDuLieu();
    }//GEN-LAST:event_jBHuyBoActionPerformed

    private void jBThoatActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBThoatActionPerformed
        // TODO add your handling code here:
        int xacnhan = JOptionPane.showConfirmDialog(this, "Bạn thực sự muốn thoát", "Xác nhận", JOptionPane.YES_NO_OPTION);
        if (xacnhan == 0) {
            this.dispose();
        }
    }//GEN-LAST:event_jBThoatActionPerformed

    private void formKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_formKeyReleased
        // TODO add your handling code here:
       
    }//GEN-LAST:event_formKeyReleased

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jBHuyBo;
    private javax.swing.JButton jBLuu;
    private javax.swing.JButton jBThem;
    private javax.swing.JButton jBThoat;
    private javax.swing.JButton jBXoa;
    private javax.swing.JComboBox jCBMaNamHoc;
    private javax.swing.JLabel jLThongTin;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JButton jLamMoi;
    private javax.swing.JPanel jPDanhSach;
    private javax.swing.JPanel jPThongTin;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JTable jTDanhSach;
    private javax.swing.JTextField jTFKhoi;
    private javax.swing.JTextField jTFMaLop;
    // End of variables declaration//GEN-END:variables
}
